package com.until.controller;


import java.time.LocalDate;
import java.time.format.DateTimeFormatter;
import java.time.temporal.TemporalAdjusters;

public class test {

    public static void main1(String[] args) {
        LocalDate now = LocalDate.of(2021,1,1);
        LocalDate firstDay = now.minusDays(1).with(TemporalAdjusters.firstDayOfMonth());
        System.out.println(firstDay.format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
        System.out.println(now.plusDays(1));
    }


    public static void main(String[] args) {
        String url = "http://esb-broker-provider/message/send?sourceService=mall-order&" +
                "backSuccUrl=http://mall-order/summary/updatePush?error=0&transactionNo=%s" +
                "&backFailUrl=http://mall-order/summary/updatePush?error=1&transactionNo=%s" +
                "&sourceMethod=OrderSummaryListener" +
                "&targetService=nc-adapter" +
                "&targetMethod=OMSSaleOrderApi";
        String a = url.replaceAll("%s","1234565432345676543");
        System.out.println(a);

    }
}
